<?php 

	$id= $_GET['id'];

	$pdo = new PDO('mysql:host=localhost;dbname=pass;charset=utf8','root','');

	$sql = 'select * from goods where id = '.$id;

	$stmt = $pdo->query($sql);

	$res = $stmt->fetch(PDO::FETCH_ASSOC);

	$strs = $res['pic'];



	//转换json
	//$str = json_encode($res);


	echo $strs;


